package com.lcg.rocket.mqlistener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @author: LCG
 * @date: 2023-01-12 13:49:20
 * @description:
 **/
//@Component
//@RocketMQMessageListener(topic = "TEST-12",consumerGroup = "TEST-123",consumeThreadMax = 2)
public class MqListener01 implements RocketMQListener<String> {

    @Override
    public void onMessage(String s) {
        System.out.println(Thread.currentThread().getId()+"-----Rocket简单消费信息----"+s);
    }
}
